package m3d30;

import java.io.FileInputStream;
import java.io.IOException;

public class pInputStream {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\ideaproject\\basicproject\\day02\\src\\m3d30\\n.txt");
        //数组长度一般为1024 1kb或其倍数
        byte[] bytes = new byte[1024];

        int len1 = 0;
        //读取的个数
        while ((len1 = fis.read(bytes))!=-1){
            //从零开始读取len1个
            System.out.println(new String(bytes,0,len1));
        }

        fis.close();
    }
}
